#include "appmainmodel.h"
#include "newspaper/newspapermanager.h"

AppMainModel::AppMainModel(QObject *parent) :
    QObject(parent), _state("loading")
{

    NewspaperManager::instance()->init();

}

void AppMainModel::onStateReady()
{
    _state= "main";
    emit stateChanged();
}

QString AppMainModel::state() const
{
    return _state;
}
